package raytracer.threading;

import raytracer.gui.IRayTracerImplementation;

public class RaytracerThread  implements Runnable 
{
	private int startWithRow;
	private int numThreads;
	private IRayTracerImplementation rayTracer;
	
	public RaytracerThread(int start, int numThreads, IRayTracerImplementation tracer)
	{
		this.startWithRow = start;
		this.numThreads = numThreads;
		this.rayTracer = tracer;
	}

	@Override
	public void run() 
	{
		rayTracer.rayTraceThread(startWithRow, numThreads);
	}

}
